/*
 * world.h: the world's data structure, interface
 */

/* state of the world */
typedef struct {
  bool quit;
  u32 frames;
} WORLD_STATE;

/* initialize the world, call once. */
void init(WORLD_STATE*ws);

/* update state, called before draw() every frame. */
void update(WORLD_STATE*ws);

/* render function, called every frame. */
void draw(WORLD_STATE*ws);

/* handle keyboard events to chang state */
void keyboard_handler(WORLD_STATE*ws);

/* handle mouse events to chang state */
void mouse_handler(WORLD_STATE*ws);

